home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gui / gtldv374.lha / GadUtil / Docs / AutoDocs / 07.GU_GadgetArrayIndex < prev    next >
Text File  |  1996-05-14  |  762b  |  26 lines

  1. gadutil.library/GU_GadgetArrayIndex       gadutil.library/GU_GadgetArrayIndex
  2.  
  3.    NAME
  4.     GU_GadgetArrayIndex -- Get a gadget's index in the LayoutGadget array.
  5.  
  6.    SYNOPSIS
  7.     index = GU_GadgetArrayIndex(id, gadgets)
  8.     D0,D1,SR(Z)                 D0  A0
  9.  
  10.     WORD GU_GadgetArrayIndex(WORD, struct LayoutGadget *);
  11.  
  12.    FUNCTION
  13.     Get a gadget's index in the Layoutgadget structure.
  14.    INPUTS
  15.     id      - The ID of the gadget you want to find.
  16.     gadgets - The LayoutGadget array that this gadget is defined in.
  17.  
  18.    RESULT
  19.     index - The index into the LayoutGadget array of the entry with the
  20.             gadget ID you asked for. Returns -1 for failure.
  21.  
  22.     SR(Z) - Set for failure. Cleared otherwise. Probably only usable for
  23.             assembly language programmers.
  24.  
  25.    SEE ALSO
  26.